# ODROID-X/X2/U2/U3 Mali GL Driver
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>

buildarch=4

pkgname=odroid-libgl
pkgver=r5p0
pkgrel=2
arch=('armv7h')
pkgdesc="ODROID-X/X2/U2/U3 Mali GL Driver"
url="http://www.hardkernel.com/"
license=('Proprietary')
depends=('mesa-libgl')
source=("http://archlinuxarm.org/builder/src/4412_r5p0_x11.tar.xz"
        'mali-odroid.conf'
        '50-mali.rules')
md5sums=('fd096d1fc0762fe8e799a9c78c259f36'
         '40f5104200cfceb12b4623d219646d4e'
         'd22820a21496fe3d9ccbae99643aac96')

package() {
  install -d "${pkgdir}"/usr/lib/mali-egl
  install -d "${pkgdir}"/etc/ld.so.conf.d
  cp -a lib* "${pkgdir}"/usr/lib/mali-egl
  install -Dm644 mali-odroid.conf "${pkgdir}"/etc/ld.so.conf.d/mali-odroid.conf
  install -Dm644 50-mali.rules "${pkgdir}"/usr/lib/udev/rules.d/50-mali.rules
}
